﻿<phone:PhoneApplicationPage
    xmlns:tm="clr-namespace:TM.QWeibo.Client.UserControls" 
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"    
    x:Class="TM.QWeibo.Client.Message.Dialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False">
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot"  Style="{StaticResource PageLayoutGrid}">
        <!--<Grid.Background>
            <ImageBrush Stretch="UniformToFill" ImageSource="/TM.QWeibo.Client;component/Resource/Images/backgound.png"/>
        </Grid.Background>-->
        <Grid.RowDefinitions>
            <RowDefinition Height="80"/>
            <RowDefinition Height="3" />
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <!--用户头像-->
        <tm:UserAvatar x:Name="UserInfo" Grid.Row="0" />
        <toolkit:PerformanceProgressBar Width="400"  Grid.Row="1"  HorizontalAlignment="Center" x:Name="progressBar" Style="{StaticResource PerformanceProgressBarStyle}"/>
        <tm:Dialog x:Name="DialogMessageList" Grid.Row="2" Margin="0,50,0,0"/>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Opacity="0.9">
            <shell:ApplicationBarIconButton x:Name="btnAdd" IconUri="/Resource/Icons/message.png" Text="私信" Click="btnAdd_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
